<script setup>
let clickMe=()=>{
    alert();
}

let clickOne=()=>{
    alert("一次就好");
}

let toHeiMa=()=>{
    location.href="https://www.itheima.com/"
}

</script>

<template>
    <div>
<button @click="clickMe()">点我呢</button>
<button @click.once="clickOne">一次点击</button>
<a href="https://www.atguigu.com/" target="_blank" @click.prevent="toHeiMa">尚硅马</a>

    </div>
  
</template>

<style scoped>

</style>
